package com.sh.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.sh.entity.Customer;
import com.sh.entity.MonthBalanceRPT;
import com.sh.entity.User;


@Mapper
public interface CustomerDao {
	public List<Customer> listCustomerByPage(Map<String,Object> conMap);

	public List<Customer> listCustomer(Map<String,Object> conMap);

	public void saveUpload(@Param("list")List<Customer> checkList ,@Param("user")User user, @Param("sysTime")String sysTime);

	public List<Customer> listCustomerByNames(@Param("customerNameList")List<String> cutomerNameList);

	public List<Customer> listCustomerByName(Map<String, Object> conMap);
	//批量 删除 客户 信息
	public void deleteCustomers(@Param("array")String[] ids);
	/**
	 * 新增 / 修改 保存数据
	 * */
	public void saveCustomers(@Param("customer")Customer customer, User user);
	//查询数量
	public int listCustomerCount(Map<String, Object> conMap);

	//修改的时候 判断 客户名称有么有存在
	public int isCustomerExistForUpdate(@Param("customer")Customer customer);
	//新增的时候 判断 客户名称有么有存在
	public int isCustomerExistForAdd(@Param("customer")Customer customer);


}
